<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/6/30
  Time: 11:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link href="../css/Style.css" type=text/css rel=stylesheet>
    <link href="../css/Manage.css" type=text/css
          rel=stylesheet>
    <script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
    <SCRIPT language=javascript>
        /*function to_page(page){
            if(page){
                $("#page").val(page);
            }
            document.customerForm.submit();

        }*/
    </SCRIPT>
</head>
<body>
<form id="customerForm" name="customerForm" action="queryVisitByInterviewee" method="get">

    <table cellSpacing=0 cellPadding=0 width="98%" border=0>
        <tbody>
        <tr>
            <td width=15><img src="../images/new_019.jpg"
                              border=0></td>
            <td width="100%" background="../images/new_020.jpg"
                height=20></td>
            <td width=15><img src="../images/new_021.jpg"
                              border=0></td>
        </tr>
        </tbody>
    </table>
    <table cellSpacing=0 cellPadding=0 width="98%" border=0>
        <tbody>
        <tr>
            <td width=15 background="../images/new_022.jpg"><img
                    src="../images/new_022.jpg" border=0></td>
            <td vAlign=top width="100%" bgColor=#ffffff>
                <table cellSpacing=0 cellPadding=5 width="100%" border=0>
                    <tr>
                        <td class=manageHead>当前位置：客户拜访管理 &gt; 客户拜访列表</TD>
                    </tr>
                    <tr>
                        <td height=2></td>
                    </tr>
                </table>
                <table borderColor=#cccccc cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                    <tbody>
                    <tr>
                        <td height=25>
                            <table cellSpacing=0 cellPadding=2 border=0>
                                <tbody>
                                <tr>
                                    <td>被拜访人名称：</td>
                                    <td><input class=textbox id=sChannel2 style="WIDTH: 80px" maxLength=50 name="interviewee"></td>
                                    <td><input class=button id=sButton2 type=submit value=" 筛选 " name=sButton2></td>
                                </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <table id=grid style="BORDER-TOP-WIDTH: 0px; FONT-WEIGHT: normal; BORDER-LEFT-WIDTH: 0px; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 0px; BORDER-BOTTOM-COLOR: #cccccc; WIDTH: 100%; BORDER-TOP-COLOR: #cccccc; FONT-STYLE: normal; BACKGROUND-COLOR: #cccccc; BORDER-RIGHT-WIDTH: 0px; TEXT-DECORATION: none; BORDER-RIGHT-COLOR: #cccccc" cellSpacing=1 cellPadding=2 rules=all border=0>
                                <tbody>
                                <tr style="FONT-WEIGHT: bold; FONT-STYLE: normal; BACKGROUND-COLOR: #eeeeee; TEXT-DECORATION: none">
                                    <td>客户名称</td>
                                    <td>负责人姓名</td>
                                    <td>拜访时间</td>
                                    <td>被拜访人</td>
                                    <td>拜访地点</td>
                                    <td>拜访详情</td>
                                    <td>下次拜访时间</td>
                                    <td>操作</td>
                                </tr>
                                <c:forEach items="${requestScope.visiters}" var="visiter">
                                    <tr style="FONT-WEIGHT: normal; FONT-STYLE: normal; BACKGROUND-COLOR: white; TEXT-DECORATION: none">
                                        <td>${visiter.custName}</td>
                                        <td>${visiter.name}</td>
                                        <td>${visiter.visitTime}</td>
                                        <td>${visiter.visitInterviewee}</td>
                                        <td>${visiter.visitAddr}</td>
                                        <td>${visiter.visitDetail}</td>
                                        <td>${visiter.visitNextTime}</td>
                                        <td>
                                            <a href="queryVisitById?visitId=${visiter.visitId}">修改</a>
                                            &nbsp;&nbsp;
                                            <a href="deleteVisit?visitId=${visiter.visitId}">删除</a>
                                        </TD>
                                    </TR>
                                </c:forEach>

                                </tbody>
                            </table>
                        </td>
                    </tr>

                    <tr>
                        <td><span id=pagelink>
                            <div style="LINE-HEIGHT: 20px; HEIGHT: 20px; TEXT-ALIGN: right">
                                共[<B>1</B>]条记录,[<B>1</B>]页
                                ,每页显示
                                <select name="pageSize">

                                <option value="1" >1</option>
                                <option value="30" >30</option>
                                </select>
                                条
                                [<A href="javascript:to_page(${page-1})">前一页</A>]
                                <B>1</B>
                                [<A href="javascript:to_page(${page+1})">后一页</A>]
                                到
                                <input type="text" size="3" id="page" name="page" />
                                页

                                <input type="button" value="Go" onclick="to_page()"/>
                            </div>
                        </span></td>
                    </tr>
                    </tbody>
                </table>
            </td>
            <td width=15 background="../images/new_023.jpg"><IMG
                    src="../images/new_023.jpg" border=0></td>
        </tr>
        </tbody>
    </table>
    <table cellSpacing=0 cellPadding=0 width="98%" border=0>
        <tbody>
        <tr>
            <td width=15><img src="../images/new_024.jpg"
                              border=0></td>
            <td align=middle width="100%"
                background="../images/new_025.jpg" height=15></td>
            <td width=15><img src="../images/new_026.jpg"
                              border=0></td>
        </tr>
        </tbody>
    </table>
</form>
</body>
</html>
